<?php
// +----------------------------------------------------------------------
// | title: 武将觉醒日志
// +----------------------------------------------------------------------
// | Author: TZ.Leong
// +----------------------------------------------------------------------
// | Date: 2019/11/18 17:03
// +----------------------------------------------------------------------

return array(
    1 => array(
        "title" => "武将觉醒日志",
        'table_name' => "hero_active_third_pos",
        "where" => array(
            'role_id' => array('name' => '玩家ID','type' => 'text','value' => ''),
            'nickname' => array('name' => '角色名','type' => 'text','value' => ''),
            'log_time' => array('name' => '时间','type' => 'date','values' => array('start_date' => date('Y-m-d'),'end_date' => date('Y-m-d'))),
        ),
        "where_merge" => [],
        'show' => array(
            'role_id' => '玩家ID',
            'nickname' => '角色名',
            'corps' => ['武将兵种', 'function' => 'getTypeName', 'param' => ['config' => 'corps_conf', 'diff_config' => 'hero', 'field' => 'hero_id', 'diff_config_field' => 'corps']],
            'star' => ['武将星级', 'function' => 'getTypeName', 'param' => ['config' => 'corps_conf', 'diff_config' => 'hero', 'field' => 'hero_id', 'diff_config_field' => 'star_limit']],
            'hero_id' => array("武将名称","function" => "itemName","param" => ['field' => 'hero_id', 'config' => 'hero', 'config_field' => 'name']),
            'cost' => ['消耗武将', 'function' => 'consume', 'param' => ['field' => 'cost', 'config' => 'hero']],
            'log_time' => array("时间","function" => "changeDate"),
        )
    ),
);